<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "e_compony_msg".
 *
 * @property integer $compony_msg_id
 * @property string $compony_name
 * @property string $compony_area
 * @property string $content
 * @property string $tel
 * @property string $name
 * @property string $logo
 * @property integer $user_id
 * @property string $status
 */
class ComponyMsg extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'e_compony_msg';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id'], 'integer'],
            [['compony_name', 'compony_area', 'content', 'tel', 'name', 'logo', 'status'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'compony_msg_id' => 'Compony Msg ID',
            'compony_name' => 'Compony Name',
            'compony_area' => 'Compony Area',
            'content' => 'Content',
            'tel' => 'Tel',
            'name' => 'Name',
            'logo' => 'Logo',
            'user_id' => 'User ID',
            'status' => 'Status',
        ];
    }
}
